<div class="content_link">
      	<a href="/" title="Trang chủ">Trang chủ</a> &raquo; <a href="#" title=""><span class="sanpham"><?php echo $data['title'] ; ?></span></a>
      </div>
    <div id="content" style="height:auto">
    	<div id="bg_left_right">
    	<div id="content_left">
      	<div class="content_sort">
          <div class="cssOrder" style="width:320px;text-align:center;margin: 3px auto;float: inherit;">
          	<div class="paging">
            	<?php echo $data['pagelist'];?>
            </div>
          </div>
        </div>
      	<div id="content_product">
          <ul class="list_product">
          <?php
		  	if(isset($data['list_pro']) && $data['list_pro'] != NULL){
				$stt = 1;
				foreach($data['list_pro'] as $value){
					if($stt % 3 == 0){
		  ?>
              <li style="margin-right:0px;">
      <div class="tooltip" style="left: 157.5px; top: 66px; display: none;">
        <div class="bgtip">
          <h2 class="stickyTitle" style="text-align:left"><?php echo $value['pro_name'] ;?></h2>
          <p style="text-align:left"><strong>Giá :</strong> <span style="color: red;font-weight: bold;"> 
		  	<?php 
				if($value['pro_price'] == ''){
					echo "Liên hệ";
				}else{
					echo @number_format($value['pro_price']) ;
				}
			?> VND 
          </span></p>
          <p style="border-bottom: 1px dotted #ccc;">&nbsp;</p>
          <p>&nbsp;</p>
          <div class="hunv_summary" style="text-align:left">
          	<?php 
                if($value['pro_info'] == ''){
                        echo "Chưa cập nhật !";
                    }else{
                        echo $value['pro_info'] ;
                    }
              ?>
          <br>
          </div>
        </div>
      </div>
      <?php
	  	if($value['pro_new'] == 1){
			echo "<img class='pro_new' src='".base_url."public/images/new.png' alt='new'>";
		}
	  ?>
      <?php
	  	if($value['pro_new'] == 1){
			echo "<img class='pro_hot' src='".base_url."public/images/hot.png' alt='hot'>";
		}
	  ?>
      <div class="product_img"> <a href="<?php echo base_url.$value['pro_name_rewrite'].'/p'.$value['pro_id'].'.html' ;?>" title="<?php echo $value['pro_name'] ;?>"> <img class="pro_images" src="<?php echo base_url."public/images/".$value['pro_images'];?>" alt="<?php echo $value['pro_name'] ;?>"></a>
        <div class="pro_price"> <?php echo number_format($value['pro_price']) ;?> VND </div>
      </div>
      <div class="product_info"> 
        <!--  <p class="promotion"><span class="km_red">Khuyến mại:</span> Chuột Quang, Bộ vệ sinh Laptop, Túi Xách, Phần mềm virus bản quyền.</p> -->
        <p class="promotion"><a style="color: #1481de;" href="<?php echo base_url.$value['pro_name_rewrite'].'/p'.$value['pro_id'].'.html' ;?>"><?php echo $value['pro_name'] ;?></a></p>
        <p class="pro_addcate"><a href="index.php?page=shopping&act=add&pid=<?php echo $value['pro_id']; ?>" title="Mua hàng"> <img src="<?php echo base_url."public/images/";?>buy.png" alt="Mua hàng"></a></p>
      </div>
    </li>
        	<?php
				}else{
			?>
            	<li>
      <div class="tooltip" style="left: 157.5px; top: 66px; display: none;">
        <div class="bgtip">
          <h2 class="stickyTitle" style="text-align:left"><?php echo $value['pro_name'] ;?></h2>
          <p style="text-align:left"><strong>Giá :</strong> <span style="color: red;font-weight: bold;"> 
		  	<?php 
				if($value['pro_price'] == ''){
					echo "Liên hệ";
				}else{
					echo @number_format($value['pro_price']) ;
				}
			?> VND 
          </span></p>
          <p style="border-bottom: 1px dotted #ccc;">&nbsp;</p>
          <p>&nbsp;</p>
          <div class="hunv_summary" style="text-align:left">
          	<?php 
                if($value['pro_info'] == ''){
                        echo "Chưa cập nhật !";
                    }else{
                        echo $value['pro_info'] ;
                    }
              ?>
          <br>
          </div>
        </div>
      </div>
      <?php
	  	if($value['pro_new'] == 1){
			echo "<img class='pro_new' src='".base_url."public/images/new.png' alt='new'>";
		}
	  ?>
      <?php
	  	if($value['pro_new'] == 1){
			echo "<img class='pro_hot' src='".base_url."public/images/hot.png' alt='hot'>";
		}
	  ?>
      <div class="product_img"> <a href="<?php echo base_url.$value['pro_name_rewrite'].'/p'.$value['pro_id'].'.html' ;?>" title="<?php echo $value['pro_name'] ;?>"> <img class="pro_images" src="<?php echo base_url."public/images/".$value['pro_images'];?>" alt="<?php echo $value['pro_name'] ;?>"></a>
        <div class="pro_price"> <?php echo number_format($value['pro_price']) ;?> VND </div>
      </div>
      <div class="product_info"> 
        <!--  <p class="promotion"><span class="km_red">Khuyến mại:</span> Chuột Quang, Bộ vệ sinh Laptop, Túi Xách, Phần mềm virus bản quyền.</p> -->
        <p class="promotion"><a style="color: #1481de;" href="<?php echo base_url.$value['pro_name_rewrite'].'/p'.$value['pro_id'].'.html' ;?>"><?php echo $value['pro_name'] ;?></a></p>
        <p class="pro_addcate"><a href="index.php?page=shopping&act=add&pid=<?php echo $value['pro_id']; ?>" title="Mua hàng"> <img src="<?php echo base_url."public/images/";?>buy.png" alt="Mua hàng"></a></p>
      </div>
    </li>
             <?php
				}
					$stt++;
				} }else{
				echo "Chưa cập nhật !";
			}
			?>
          </ul>
          </div>
          <div class="content_sort">
          <div class="cssOrder" style="width:320px;text-align:center;margin: 3px auto;float: inherit;">
          	<div class="paging">
            	<?php echo $data['pagelist'];?>
            </div>
          </div>
        </div>
      </div>
      <div id="content_right">
      	<div id="right_top_top">
        	<h3 class="right_title">DANH MỤC SẢN PHẨM</h3>
          <ul class="category">
          	<?php
				if(isset($data['cate']) && $data['cate'] != NULL){
					foreach($data['cate'] as $val){
						echo "<li><a title='".$val['cate_name']."' href='".$val['cate_rewrite']."/c".$val['cate_id'].".html'><span class='disc'>&bull;</span> ".$val['cate_name']."</a></li>";
					}
				}
			?>
          </ul>
        </div>
        <div id="free_ship">
        	<h4 class="title_title">Quảng cáo</h4>
        	<a href="#" title=""><img src="<?php echo base_url."public/images/";?>free_ship.png" alt="" /></a>
            <a href="javascript:void(0)" title="Quảng cáo"><img src="<?php echo base_url."public/images/";?>banner_1c383cd3.png" alt="quảng cáo"  /></a>
        </div>
      </div>
      </div>
      <!--End List product-->